home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
win
/
rtfhelp.zip
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1994-11-08
|
2KB
|
103 lines
# J. Hlavaty
# RTFHelp makefile
.SILENT:
# all inference rule suffixes must be in the following list
# or their inference rules will be ignored
.SUFFIXES: .exe .obj .asm .c .bas .res .rc .hdc .rtf
!ifndef DEST
DEST = objs # put object files in .\objs
!endif
OBJS = $(DEST)\rtfhbann.obj $(DEST)\rtfhcp85.obj $(DEST)\rtfhdata.obj \
$(DEST)\rtfhhelp.obj $(DEST)\rtfhmain.obj $(DEST)\rtfhpars.obj
ASMDBG = -Zi -DDEBUG
ASMFLAG =
MSCDBG = -Zi -Od -DDEBUG
MSCFLAG = -c -AS -W3 -Fo$* # subdir is prepended already to target
LINKDBG = /CO /MAP
LINKFLAG = /NOD
RTFFLAG = -o -q
CLIBP = slibcep # making a bound app
CLIB = slibcer # link this in for a DOS app
# nmake DEBUG=1
!ifdef DEBUG
ASMFLAG = $(ASMFLAG) $(ASMDBG)
MSCFLAG = $(MSCFLAG) $(MSCDBG)
LINKFLAG = $(LINKFLAG) $(LINKDBG)
!endif
# nmake LIST=1
!ifdef LIST
ASMFLAG = $(ASMFLAG) -l
LINKFLAG = $(LINKFLAG)
!endif
.rc.res: ; $(RC) $(RCFLAGS) $*.rc
.c.obj: ; $(CC) $(MSCFLAG) $*.c
.asm.obj: ; masm $(MFLAGS) $*.asm;
.hdc.rtf: ; rtfhelp $(RTFFLAG) $*.hdc
.rtf.hlp: ; hc31 $*
all: output verifydirs rtfhelp.exe sample.hlp
#pseudo-target to let us know what our options are
output:
echo MSC == $(MSCFLAG) LINK == $(LINKFLAG)
verifydirs:
mkdir objs
help: sample.hlp
sample.hlp: sample.rtf
sample.rtf: sample.hdc rtfhelp.exe
# note we can force a link of the real EXE in $(DEST) by
# erasing the copy in the current dir.
rtfhelp.exe : $(OBJS)
link @<<rtfhelp.lnk
os2.lib $(LINKFLAG) $**, objs\$@,, $(CLIBP), ;
<<KEEP
cd $(DEST)
bind $*
copy $@ ..
copy $@ ..\test > nul
cd ..
$(DEST)\rtfhbann.obj : rtfhbann.c
$(CC) $(MSCFLAG) rtfhbann.c
$(DEST)\rtfhcp85.obj : rtfhcp85.c rtfhelp.h
$(CC) $(MSCFLAG) rtfhcp85.c
$(DEST)\rtfhdata.obj : rtfhdata.c rtfhelp.h
$(CC) $(MSCFLAG) rtfhdata.c
#$(DEST)\rtfhgent.obj : rtfhgent.c rtfhelp.h
# $(CC) $(MSCFLAG) rtfhgent.c
$(DEST)\rtfhhelp.obj : rtfhhelp.c rtfhelp.h
$(CC) $(MSCFLAG) rtfhhelp.c
$(DEST)\rtfhmain.obj : rtfhmain.c rtfhelp.h
$(CC) $(MSCFLAG) rtfhmain.c
$(DEST)\rtfhpars.obj : rtfhpars.c rtfhelp.h
$(CC) $(MSCFLAG) rtfhpars.c
sample.rtf : sample.hdc
sample.hlp : sample.rtf